<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>
        <span>我是内容</span>
    </div>
    <input type="text" value="请输入内容">

    <script src="../3-jq效果/js/jquery.min.js"></script>
    <script>
        // 1. 获取html
        let a = $('div').html();
        // 2. 设置html;
        let a1 = $('div').html('123');

        // 3. 设置文本text();
        // let b = $('div').text();
        // let b1 = $('div').text('设置文本text');

        // 4. 获取，设置表单值 val()
        let c = $('input').val();
        let c1 = $('input').val('123');
    </script>
</body>

</html>